package com.example.miaoshademo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Shenluw
 * created：2019/7/17 22:28
 */
@Service
public class MiaoshaOrderServiceImpl implements MiaoshaOrderService {

	@Autowired
	private MiaoshaOrderRepository miaoshaOrderRepository;

	@Override
	public MiaoshaOrder query(String orderId) {
		return miaoshaOrderRepository.findById(orderId).orElse(null);
	}
}
